/**     
 * @{#} InternalContext.java Create on 2010-1-8 下午03:03:44    
 * Copyright (c) 2009 by Softdons.com.     
 */
package com.freecsim.sas.core.internal;

import java.util.Properties;

import com.freecsim.sas.core.ServiceManager;

 /**
 * 
 * <p></p>
 * @version	1.0
 * @author    	老吴
 * @since 		1.6
 */
public final class InternalContext {
    
	/**
	 * 服务管理器
	 */
	private static volatile ServiceManager serviceManager;
	
	/**
	 * 全局参数
	 */
	private static volatile Properties globalParameters;
	
	
	/**
	 * @return the serviceManager
	 */
	public static ServiceManager getServiceManager() {
		return serviceManager;
	}

	/**
	 * @param serviceManager the serviceManager to set
	 */
	public static void setServiceManager(ServiceManager _serviceManager) {
		serviceManager = _serviceManager;
	}

	/**
	 * @return the globalParameters
	 */
	public static Properties getGlobalParameters() {
		return globalParameters;
	}

	/**
	 * @param globalParameters the globalParameters to set
	 */
	public static void setGlobalParameters(Properties globalParameters) {
		InternalContext.globalParameters = globalParameters;
	}
}
